﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ZJK.Models.CategoryManage
{
    public class vmCategoryIndex
    {
        /// <summary>
        /// 操作标志
        /// </summary>
        public string flagOP { get; set; }

        /// <summary>
        /// 记录ID
        /// </summary>
        public string category_id { get; set; }

        /// <summary>
        /// 分类代码
        /// </summary>
        public string category_code { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string category_name { get; set; }

        /// <summary>
        /// 父类型ID
        /// </summary>
        public string pre_category_id { get; set; }

        /// <summary>
        /// 分类级别
        /// </summary>
        public int category_level { get; set; }

        /// <summary>
        /// 是否叶子节点
        /// </summary>
        bool is_leaf { get; set; }

        /// <summary>
        /// 分类路径
        /// </summary>
        public string category_path { get; set; }

        /// <summary>
        /// 当前分类列表
        /// </summary>
        public List<DB_NH.DB_Model.ZJK.ZJ_category> categorys { get; set; }
    }

    /// <summary>
    /// JSON的专家分类viewModel
    /// </summary>
    public class vmCategoryForJson
    {
        /// <summary>
        /// 节点ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 节点上级ID
        /// </summary>
        public string pId { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        public string name { get; set; }
    }

    /// <summary>
    /// 专家类型
    /// </summary>
    public class vmCategory
    {
        /// <summary>
        /// 节点ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 节点上级ID
        /// </summary>
        public string pid { get; set; }

        /// <summary>
        /// 节点代码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 节点名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 是否叶子节点
        /// </summary>
        public bool isleaf { get; set; }

        public vmCategory()
        {

        }
    }
}